package com.yuncheng.oaApi.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class OaBusinessConstant {

    @Value("${file.path}")
    public String TEMPORARY_UPLOAD_MKDIR_ROOT;

    @Value("${file.oawjjl}")
    public String YUNCEHNG_PATH_UPLOAD;

    @Value("${file.oazwpath}")
    public String UPLOAD_OA_ZW;

    @Value("${file.rootUrl}")
    public String UPLOAD_FILE_ROOT;

    @Value("${file.oafjpath}")
    public String UPLOAD_FILE_OAFJ;


    @Value("${file.oaexcel}")
    public String OA_EXCEL;


    public final static String Dw_NAME =  "广西壮族自治区食品药品审评查验中心"; // 单位名称


    public final static String SNED_SMS_FILE_ROOT_URL = "sms/yjj_cyxt.sms.priv.pem";

    public final static String EXCEL_TEMPLATE_XML_ROOT_URL = "excelTemplate"; // 默认excel模板根路径

    public final static String IMPORT_OA_LGQS_XML = "import_oa_lgqs.xml"; // 离岗请示记录 - 导出模板

    public final static String IMPORT_OA_GWYC_XML = "import_oa_gwyc.xml"; // 公务用车记录 - 导出模板

    public final static String IMPORT_OA_HYSGL_XML = "import_oa_hysgl.xml"; // 会议室记录 - 导出模板

    public final static String IMPORT_OA_RYPX_XML = "import_oa_rypx.xml"; // 人员培训记录 - 导出模板

    public final static String IMPORT_OA_XZSWSP_XML = "import_oa_xzswsp.xml"; // 行政事务审批 - 导出模板

    public final static String IMPORT_OA_XCXXSP_XML = "import_oa_xcxxsp.xml"; // 宣传信息审批 - 导出模板

    public final static String IMPORT_OA_QXJSP_XML = "import_oa_qxjsp.xml"; // 请休假审批 - 导出模板

    public final static String IMPORT_OA_BGYPSQMX_XML = "import_oa_bgypsqmx.xml"; // 请休假审批 - 导出模板


    /**
     * 内控
     * @param wjlx
     * @return
     */

    public final static String IMPORT_NK_NKRSYSZBTZ_XML = "import_nk_nkrsyszbtz.xml"; // 预算指标台账 - 导入模板
    public final static String INSPECTOR_NK_NKRSYSZBCZJL_XML = "import_nk_nkrsyszbczjl.xml"; // 预算指标操作记录 - 导入模板
    public final static String INSPECTOR_NK_YSZBCZJL_XML = "import_nk_yszbczjl.xml"; // 预算指标操作记录 - 导入模板

    public final static String INSPECTOR_NK_GSCZJL_XML = "import_nk_gsczjl.xml"; // 预算指标个税操作记录 - 导入模板




    public static String getWordFormatType(String wjlx){
        if (".docx".equals(wjlx)){
            return "DOCX";
        }else if (".doc".equals(wjlx)){
            return "DOC";
        }
        return "";
    }


    public final static String USER_QM = "签名";

    public final static String USER_PHOTO = "用户照片";
    public final static String USER_JCY_ZJ = "检查员证件";



}
